//
//  UILabel + Extension.swift
//  GHWeibo
//
//  Created by LGH on 2017/8/6.
//  Copyright © 2017年 LGH. All rights reserved.
//

import UIKit

extension UILabel {
    
    class func labelWith(text: String, fontSize: CGFloat, color: UIColor) -> UILabel {
        
        let label = UILabel()
        label.text = text
        label.font = UIFont.systemFont(ofSize: fontSize)
        label.textColor = color
        label.numberOfLines = 0
        label.sizeToFit() 
        
        return label
    }
}
